﻿#include "FITKAbaqusHDF5AbstractAdaptor.h"

#include "FITK_Interface/FITKInterfaceIO/FITKAbstractHDF5Reader.h"
#include "FITK_Interface/FITKInterfaceIO/FITKAbstractHDF5Writer.h"
//命名空间
namespace IO
{
    void FITKAbaqusHDF5AbstractAdaptor::consoleMessage(int errorLevel, QString str)
    {
        //判断是读取还是写出
        //HDF5 errorLevel输出没有2
        int level = errorLevel ? 1 : 3;
        QString isState = errorLevel ? "True" : "False";
        if (_reader)
        {
            _reader->consoleMessage(errorLevel, str + isState);
        }
        else if(_writer)
        {
            _writer->consoleMessage(errorLevel, str + isState);
        }
    }
}
